using RAG.Domain.Entities;

namespace RAG.Domain.Entities.App;

public class Documents : EntityBase
{
    //文档标题
    public string Title { get; set; } = default!;
    //文档文件名
    public string FileName { get; set; } = default!;
    //文档文件路径
    public string FilePath { get; set; } = default!;
    //文档文件类型
    public string FileType { get; set; } = default!;
    //文档文件大小
    public string? FileSize { get; set; }
    //文档描述
    public string? Description { get; set; }
    //文档标签
    public string? Tags { get; set; }
    //文档访问级别（谁能看到这份文档）
    public string AccessLevel { get; set; } = "internal";
    //文档当前处理状态
    public string Status { get; set; } = "pending";

    //外键属性
    public Guid UserId { get; set; }

    //导航属性
    public Users User { get; set; } = default!;
    public ICollection<DocumentChunks> DocumentChunks { get; set; } = new List<DocumentChunks>();
}